package me.plugin.bukkitlearning;

import me.plugin.bukkitlearning.commands.Announcer;
import me.plugin.bukkitlearning.commands.MainCommand;
import me.plugin.bukkitlearning.commands.add;
import org.bukkit.plugin.java.JavaPlugin;

public final class BukkitLearning extends JavaPlugin {

    @Override
    public void onEnable() {
        // Plugin startup logic
        System.out.println("[BukkitLearning] 插件已启动");
        getCommand("helloworld").setExecutor(new MainCommand());
        getCommand("add").setExecutor(new add());
        getCommand("shout").setExecutor(new Announcer());
    }

    @Override
    public void onDisable() {
        // Plugin shutdown logic
        System.out.println("[BukkitLearning] 插件已卸载");
    }
}
